package com.sandasai.domain;

import java.sql.Timestamp;

/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	private Integer id;
	private String username;
	private String password;
	private String email;
	private String activeCode;
	private Boolean emailVerified;
	private Timestamp registrationDate;
	private Student student;
	private Admin admin;
	private Teacher teacher;
	private Bankcard bankcard;
	

	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(String username, String password, String email,
			Boolean emailVerified, Timestamp registrationDate, Bankcard bankcard) {
		this.username = username;
		this.password = password;
		this.email = email;
		this.emailVerified = emailVerified;
		this.registrationDate = registrationDate;
		this.bankcard = bankcard;
	}

	/** full constructor */
	public User(String username, String password, String email,
			Boolean emailVerified, Timestamp registrationDate, Student student,
			Admin admin, Teacher teacher) {
		this.username = username;
		this.password = password;
		this.email = email;
		this.emailVerified = emailVerified;
		this.registrationDate = registrationDate;
		this.student = student;
		this.admin = admin;
		this.teacher = teacher;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Boolean getEmailVerified() {
		return this.emailVerified;
	}

	public void setEmailVerified(Boolean emailVerified) {
		this.emailVerified = emailVerified;
	}

	public Timestamp getRegistrationDate() {
		return this.registrationDate;
	}

	public void setRegistrationDate(Timestamp registrationDate) {
		this.registrationDate = registrationDate;
	}

	public Student getStudent() {
		return this.student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	public Admin getAdmin() {
		return this.admin;
	}

	public void setAdmin(Admin admin) {
		this.admin = admin;
	}

	public Teacher getTeacher() {
		return this.teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	public String getActiveCode() {
		return activeCode;
	}

	public void setActiveCode(String activeCode) {
		this.activeCode = activeCode;
	}

	public Bankcard getBankcard() {
		return bankcard;
	}

	public void setBankcard(Bankcard bankcard) {
		this.bankcard = bankcard;
	}

}